package com.itheima.接口.接口和抽象类的区别_05;

//游泳接口
public interface Swim {

    public static final double weight = 100;
    void swimming();

    /*public void sleep(){
        System.out.println("睡觉");
    }*/
}

class Dog extends Animal implements Swim{

    @Override
    public void eat() {
        System.out.println("狗吃骨头..");
    }

    @Override
    public void swimming() {
        System.out.println("狗学会了狗刨..");
    }
}
